import type {
  BaseResponse,
  ListResponse,
  ParamsType,
  userType,
} from "@/types/common";
import type { StatisticItem } from "@/types/home/statistic";
import service from "@/utils/request";

export const useHomeStatisticApi = (
  params?: ParamsType
): Promise<BaseResponse<StatisticItem[]>> => {
  return service({
    url: `/home/statistic`,
    method: "GET",
    params,
  });
};
